// worker.js (Worker 线程)
self.onmessage = function (e) {
  console.log("Message received from main script:", e.data);

  // 执行一些耗时的任务

  self.postMessage("Task completed");
};
